// import request from '@/utils/request'
// import type { loginPasswordApi, ApiRes, loginPasswordReq } from '@/types/test'
// export const loginPassword = (data: loginPasswordReq) => {
//   return request<any, ApiRes<loginPasswordApi>>({
//     url: '/login/password',
//     method: 'POST',
//     data
//   })
// }

import type { loginPasswordApi, loginPasswordReq } from '@/types/test'
import request from '@/utils/request'

export const loginPassword = (data: loginPasswordReq) =>
  request<loginPasswordApi>('/login/password', 'post', data)
